//
// chips.h
// Usage: ports define of some system chips
//        e.g. 8259A 8253
// Create Date: 2008-03-18
// Creator: MaJiuyue
//
#ifndef _CHIPS_H_
#define _CHIPS_H_

// 8259A PIC 
#define	PIC_M_CTL		0x20
#define	PIC_M_CTLMASK		0x21	
#define	PIC_S_CTL		0xA0
#define	PIC_S_CTLMASK		0xA1


// 8253/8254 PIT
#define TIMER0			0x40	/* I/O port for timer channel 0 */
#define TIMER_MODE		0x43	/* I/O port for timer mode control */
#define RATE_GENERATOR		0x34	/* 00-11-010-0 
			 Counter0 - LSB then MSB - rate generator - binary */

// MC146818RTC
#include <MC146818RTC.h>

#endif

